{include file="admin/header.html} 
<div class="title">
    <h3>相册管理-{$subtitle}</h3>
</div>
{if $is_edit eq true}
<div class="condition">
    编号:{$album.albumid} | 创建时间:{$album.createtime} | 创建者:{$album.u.realname}
</div>
{/if}
{if !empty($msg)}
<div class="condition">
    {$msg}
</div>
{/if}
<div class="table_zone">
    <form method="post" action="{if $is_edit eq true}/admin/editalbum?albumid={$album.albumid}{else}/admin/addalbum{/if}" enctype="multipart/form-data">
        <table class="modifytable">
            <tr>
                <td width="100px">所属项目</td>
                <td>
                    <select name="project">
                        {foreach from=$show_projects item=v key=k}
                        <option value="{$v}">{$k}</option>
                        {/foreach}
                    </select>
                </td>
            </tr><tr>
                <td>相册名称</td>
                <td>
                    <input type="text" name="name" style="width:300px"/>
                </td>
            </tr><tr>
                <td>相册封面</td>
                <td>
                    <input type="file" name="cover" style="width:300px"/>
                    {if !empty($album.cover)}
                    <a href="{$album.cover}" target="_blank">当前封面</a>
                    {/if}
                </td>
            </tr><tr>
                <td>内容</td>
                <td><textarea name="describe" style="width:650px;height:300px;"></textarea></td>
            </tr><tr>
                <td>备注</td>
                <td><input type="text" name="remark" style="width:300px"/></td>
            </tr>
            <tr>
                <td style="text-align: center" colspan="2"><input type="submit" value="提交"/></td>
            </tr>
        </table>
    </form>
</div>
{literal}
<script>
</script>
{/literal}
{include file="admin/footer.html"}